//
// Created by hsj on 2024-1-3.
//判断CPU是大端模式，小端模式
//

#include <stdio.h>
#include <stdlib.h>
int main(){
    int a = 0x12345678;
    char b = *(char*)&a;
    if(b == 0x12)
        printf("big end\n");
    else
        printf("little end\n");
    return EXIT_SUCCESS;
}